package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.dto.ConvertDto;
import com.csun.cmny.provider.dto.ConvertQueryDto;
import com.csun.cmny.provider.model.domain.OmcConvert;
import com.github.pagehelper.PageInfo;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-05-23 20:35
 * @Description: the interface omc
 */
public interface OmcConvertService extends IService<OmcConvert> {

    /**
     * 礼品兑换
     *
     * @param convertDto    convert dto
     * @param loginAuthDto  login auth dto
     *
     * @return  the int.
     */
    Integer addConvert(ConvertDto convertDto, LoginAuthDto loginAuthDto);

    /**
     * 礼品兑换记录分页查询
     *
     * @param convertQueryDto   convert query dto
     *
     * @return  the page info.
     */
    PageInfo queryConvertListWithPage(ConvertQueryDto convertQueryDto);
}
